package com.biz.primus.ms.member.dao.repository;

import com.biz.primus.ms.base.jpa.repository.CommonJpaRepository;
import com.biz.primus.ms.member.dao.po.MemberFootprint;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 *
 * @author jun.liu
 * @usage
 * @reviewer
 * @since 2017-10-23
 */
public interface MemberFootprintRepository extends CommonJpaRepository<MemberFootprint, Long>, MemberFootprintDao
{

    Page<MemberFootprint> findByMemberIdAndCleanOrderByUpdateTimestampDesc(Long memberId, Boolean clean, Pageable page);
    List<MemberFootprint> findByMemberIdAndClean(Long memberId, Boolean clean);

}
